﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Modules_Module_Search_Detail : System.Web.UI.UserControl
{

    private void GetResDetailByID(int resid)
    {
        string strsql;
        strsql = "SELECT * FROM resource WHERE id =" + resid;
        DataTable DetailList = new DataTable();
        MysqlHelp DetailListSQL = new MysqlHelp();
        DetailList = DetailListSQL.GetDatabysql(strsql);
        this.Label_Title.Text = DetailList.Rows[0]["title"].ToString();
        this.Label_Author.Text = DetailList.Rows[0]["author"].ToString();
        this.Label_Subject.Text = DetailList.Rows[0]["subject"].ToString();
        this.Label_Publisher.Text = DetailList.Rows[0]["publisherID"].ToString();
        this.Label_Updatatime.Text = DetailList.Rows[0]["updatatime"].ToString();
        this.Label_Source.Text = DetailList.Rows[0]["source"].ToString();
        this.Label_Intro.Text = DetailList.Rows[0]["introduction"].ToString();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        int resid = Convert.ToInt32(Request["resid"].ToString());
        GetResDetailByID(resid);
    }
}
